home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Conversion / Convert_PICT / Testing / hex_tests / ovals=notcircles.hex < prev    next >
Text File  |  1992-11-01  |  2KB  |  58 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 11 01                        % verson
  6. 01 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 30 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. 02 AA AA AA AA AA AA AA AA % fill pat
  10. 09 FF FF FF FF FF FF FF FF % pn pat
  11. 0A AA 55 AA 55 AA 55 AA 55 % back pat
  12.  
  13. % draw lines along its four sides
  14. 20 0010 0000 0010 00FF
  15. 20 0000 0010 00FF 0010
  16. 20 0050 0000 0050 00FF
  17. 20 0000 0050 00FF 0050
  18.  
  19. 20 0000 0080 00FF 0080
  20. 20 0000 00C0 00FF 00C0
  21.  
  22. 20 0080 0000 0080 00FF
  23. 20 00C0 0000 00C0 00FF
  24.  
  25. 09 FF FF FF FF FF FF FF FF % pn pat
  26.  
  27. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  28. %
  29. %    This test is identical to the opcodes test for
  30. %    ovals, EXCEPT that the framed and erased oval
  31. %    are drawn as ovals, and not as perfect circles.
  32. %    This, then, allows us to make sure that the oval
  33. %    drawing codes isn't flipping axes or anything like that.
  34. %    (framed one is wider, erased is taller)
  35. %
  36. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  37.  
  38.  
  39.  
  40. % Frame an oval  (elongate so it touches the second)
  41. 50 0010 0010 0050 0080
  42.  
  43. % paint an adjacent one
  44. 51 0010 0080 0050 00C0
  45.  
  46. % try to invert the painted one (ha ha)
  47. 53 0010 0080 0050 00C0
  48.  
  49. % fill one below the second
  50. 54 0080 0080 00C0 00C0
  51.  
  52. % erase a different one (elongate so it touches the first)
  53. 52 0050 0010 00C0 0050
  54.  
  55.  
  56.  
  57. FF    % end
  58.